<?php
include_once "index.php";
$db=new DBO ('1705phpa','root','root');
$res=$db->updata('new',['n_title'=>'百度'],'n_id=7');
if($res)
{
    echo ("<script>alert('修改成功');location.href='./show.php'</script>");
}
else
{
    echo ("<script>alert('修改失败');location.href='./show.php'</script>");
}
?>